package com.cgwx.commonutils.math;

/**
 * @author GaoWei
 * @Date 2021/8/6 - 10:54
 */
public class ValNode extends Expression
{
    protected double val = 0.0D;

    public ValNode(double d)
    {
        this.val = d;
    }

    public double eval(VarMap v, FuncMap f)
    {
        return this.val;
    }

    public double getValue()
    {
        return this.val;
    }

    public void setValue(double d)
    {
        this.val = d;
    }
}
